#pragma once

#include "../../Position.h"

// CEdge command target

class CEdge
{
public:
	CEdge();
	CEdge(const CPosition &pos1, const CPosition &pos2);
	virtual ~CEdge();

	void Initialize(const CPosition &pos1, const CPosition &pos2);
	
	CEdge& operator=(const CEdge& edge);
	BOOL operator<(const CEdge& edge1);
	BOOL operator>(const CEdge& edge1);
	BOOL operator<=(const CEdge& edge1);
	BOOL operator>=(const CEdge& edge1);
public:
	int ymin;	// the minimum y value of the two vertices.
	int ymax;	// the maximum y value of the two vertices
	double x;	// the x value associated with the minimum y value. 
	double dx;	// the 1/slope of the edge
};